/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-10-08
 * Time: 18:49
 */
class Increase {
    public static int count = 0;
    public synchronized void increase() {
        synchronized (this) {
            count ++;
        }
    }
}
public class Demo2 {
    public static void main(String[] args) {
        Increase increase = new Increase();
        increase.increase();
        System.out.println(increase.count);
    }
}
